home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 009a / snpd0493.zip / SCRNMACS.H < prev    next >
Text File  |  1993-04-05  |  1KB  |  40 lines

  1. .I 4 17
  2. #if defined(__TURBOC__)
  3.  #define FAR far
  4. #else
  5.  #define FAR _far
  6. #endif
  7.  
  8. #ifndef MK_FP
  9.  #define MK_FP(seg,off) ((void far *)(((long)(seg) << 16)|(unsigned)(off)))
  10. #endif
  11.  
  12. /*
  13. **  Functions in VIDPORT.C in SNIPPETS
  14. */
  15.  
  16. void GotoXY(int col, int row);
  17. void ClrScrn(int vattrib);
  18.  
  19. .I 5 6
  20.  #define COLORMODE  ((*(char FAR *)0x0449) != 7)
  21.  #define EXT_KBD    (*(char FAR *)0x0496 & 16)
  22.  #define VIDPAGE    (*((unsigned char far *)0x0462))
  23.  #define ROWSIZE    (*(int FAR *)0x044A)
  24.  #define SCANLINES  ((int)*(char FAR*)0x0461)
  25.  #define SCRBUFF    ((unsigned FAR *)((COLORMODE)?0xB8000000:0xB0000000))
  26. .D 6 5
  27. .I 11 3
  28.  #define SCREENSIZE ((*(int FAR *)0x044C) >> 1)
  29.  #define SCREENCOLS (*(int FAR *)0x044A)
  30.  #define SCREENROWS ((*(char FAR *)0x0484)?1+(*(char FAR *)0x0484):25)
  31. .D 12 3
  32. .I 19 1
  33.      VIDPAGE    = current video page in use
  34. .D 20 1
  35. .I 24 3
  36.      SCREENCOLS = number of columns, often 80.
  37.      SCREENROWS = number of rows, usually defaults to 25.
  38. */
  39. .D 25 3
  40.